import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'

Vue.config.productionTip = false

Vue.directive('tuwei',function(element,{value}){
  axios.get('https://api.uomg.com/api/rand.qinghua?format=json').then(
    response => {
      element.innerText = `${value}我想对你说：${response.data.content}`
    },
    error => {
      alert(error.message)
    }
  )
})





new Vue({
  el:'#app',
  render:h => h(App)
})